package com.gkt.ec.cms.activity.dao;

import java.util.List;

import org.apache.ibatis.session.RowBounds;

import com.gkt.ec.cms.activity.model.domain.CustomerActivityEntity;
import com.gkt.ec.cms.activity.model.domain.CustomerVehicle;
import com.gkt.ec.cms.activity.model.domain.CustomerVehicleEntity;
import com.gkt.ec.cms.activity.model.pojo.SearchCustomerVO;
import com.gkt.ec.commons.persistence.entity.search.CouponSearch;
import com.gkt.ec.commons.shared.persistence.CrudDao;
import com.gkt.ec.commons.shared.persistence.PageQuery;
import com.gkt.ec.commons.shared.persistence.annotation.MyBatisDao;

/**
 * Created by 14081593 on 2015/11/28.
 */
@MyBatisDao
public interface CustomerVehicleDao extends CrudDao<CustomerVehicleEntity> {

    //    @Select("select * from EC_CustomerViechle")
    List<CustomerVehicleEntity> queryCustomerVehicleList();

    List<CustomerVehicle> selectByPage(PageQuery<CustomerVehicle> page);
    
    List<CustomerVehicle> selectBindByPage(CouponSearch vo);

    int countByPage(PageQuery<CustomerVehicle> page);
    
    int countBindByPage(long couponId);

    List queryVehicleBrand();

    List<CustomerVehicleEntity> queryAll(SearchCustomerVO searchCondition,RowBounds rowBounds);

    List<CustomerActivityEntity> queryActivityCustomer(SearchCustomerVO searchCondition,RowBounds rowBounds);

    List queryBindCustomers(Long activityId);
}
